import request from '@/utils/request'
export function listSwiper(query) {
  return request({
    url: '/swiper/list',
    method: 'get',
    params: query
  })
}
export function getSwiperById(id) {
  const params = {
    id
  }
  return request({
    url: '/swiper/getSwiperById',
    method: 'get',
    params: params
  })
}
export function addItem(data) {
  return request({
    url: '/swiper/addItem',
    method: 'post',
    data: data
  })
}
export function updateItem(data) {
  return request({
    url: '/swiper/updateItem',
    method: 'put',
    data: data
  })
}
export function deleteItem(ids) {
  return request({
    url: '/swiper/deleteItem/' + ids,
    method: 'delete',
  })
}
